package cz.cvut.fel.nur.rcp.classes;

public class ListItem {

	private Ingredient ingredient;
	private int amount;
	private boolean checked;

	public Ingredient getIngredient() {
		return ingredient;
	}

	public void setIngredient(Ingredient ingredient) {
		this.ingredient = ingredient;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	
	public void addAmount(int a) {
		amount += a;
	}

	public ListItem(Ingredient ingredient, int amount) {
		super();
		this.ingredient = ingredient;
		this.amount = amount;
	}
}
